package net.xdclass.request;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 用于用户注册的前端请求类
 *
 * @author JiangZhou
 * @date 2023/5/1 15:02
 */
@Api(value = "用户注册对象")
@Data
public class UserRegisterRequest {

    @ApiModelProperty(value = "昵称",example = "小将")
    private String name;

    @ApiModelProperty(value = "密码",example = "123456")
    private String pwd;

    @ApiModelProperty(value = "头像")
    @JsonProperty("head_img")
    private String headImg;

    @ApiModelProperty(value = "用户签名",example = "哈哈哈哈哈")
    private String slogan;

    @ApiModelProperty(value = "性别 1为男 2为女",example = "1")
    private Integer sex;

    @ApiModelProperty(value = "积分")
    private Integer points;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "邮箱",example = "2630930772@qq.com")
    private String mail;

    @ApiModelProperty(value = "盐，用于个人敏感信息处理")
    private String secret;

    @ApiModelProperty(value = "邮箱验证码")
    private String code;
}
